]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Handle a missing recent-files history
authorDaniel Nylander <yeager@users.noreply.gitlab.gnome.org>
Fri, 11 Sep 2026 17:52:52 +0000 (19:52 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 13 Sep 2026 18:18:08 +0000 (20:18 +0200)
commite08280a57d8f242ddd7d6458b21c9ccf2eed797e
tree6420204343662146c3d29ee921fc677fc29c3a56
parent8f3230eff304125b8955179071855ba01bb22351
screenshot: Handle a missing recent-files history

On a profile without recently-used.xbel, taking a screenshot saves the PNG
but does not add it to recent files. GLib.BookmarkFile.load_from_file()
reports a missing file as GLib.FileError.NOENT, while the handler checked
GLib.BookmarkFileError.FILE_NOT_FOUND and returned.

Fixes: b89d90eb80 ("screenshot: Use GLib.BookmarkFile to save recent screenshots")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4405>
(cherry picked from commit fa82d28c3b0dcfd27e49bac291b37b5ca9237dc7)
js/ui/screenshot.js